package me.wangqu.weiyouqu.web.rest.business.service;

import me.wangqu.weiyouqu.web.rest.business.dao.PictureDao;
import me.wangqu.weiyouqu.web.rest.business.model.ListModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

/**
 * Created by joln on 2016/7/12.
 */
@Service
public class PictureService {
    private final Logger log = LoggerFactory.getLogger(PictureService.class);
    @Autowired
    private PictureDao pictureDao;

    public ListModel getCodePictures(Integer code, Integer type, Pageable pageable) {
        try {
            return pictureDao.getCodePictures(code, type, pageable);
        } catch (Exception e) {
            log.error("图片列表失败", e.getMessage());

        }
        return null;
    }

}
